﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AJRavindiran.Jolt.Utilities.Security
{
    /// <summary>
    /// Represents a Cryptography class which is used for hashing.
    /// </summary>
    public static class Cryptography
    {
        #region Feilds
        private static MD5 mMD5 = new MD5();
        private static SHA1 mSHA1 = new SHA1();
        private static SHA256 mSHA256 = new SHA256();
        private static SHA384 mSHA384 = new SHA384();
        private static SHA512 mSHA512 = new SHA512();
        #endregion

        #region Properties
        public static MD5 MD5
        {
            get { return mMD5; }
        }

        public static SHA1 SHA1
        {
            get { return mSHA1; }
        }

        public static SHA256 SHA256
        {
            get { return mSHA256; }
        }

        public static SHA384 SHA384
        {
            get { return mSHA384; }
        }

        public static SHA512 SHA512
        {
            get { return mSHA512; }
        }
        #endregion
    }
}
